package cn.sale.entity;

public class EventInfo implements Comparable<EventInfo>{

	private String eventName;

	private int numberOfVotes;

	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	public int getNumberOfVotes() {
		return numberOfVotes;
	}

	public void setNumberOfVotes(int numberOfVotes) {
		this.numberOfVotes = numberOfVotes;
	}

	@Override
	public int compareTo(EventInfo o) {
		return this.eventName.compareTo(o.getEventName());
	}

}
